all: lib32/ibcapture32.so lib64/libcapture.so

lib32/ibcapture32.so: capture.c config.h
	mkdir -p lib32
	gcc -shared -fPIC -m32 -o lib32/libcapture.so capture.c -ldl
lib64/libcapture.so: capture.c config.h
	mkdir -p lib64
	gcc -shared -fPIC -o lib64/libcapture.so capture.c -ldl

.PHONY: clean
clean:
	rm */libcapture.so
